package com.example.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 轮播图
 * </p>
 *
 * @author 
 * @since 2022-11-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SlideshowImage implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Id
    @Column(name = "id", insertable = false)
    @KeySql(useGeneratedKeys = true)
    private Integer id;

    /**
     * 轮播图在线地址
     */
    private String slideshowImageUrl;

    /**
     * 状态  0-正常 1-过期
     */
    private Integer status;

    /**
     * 排序号
     */
    private Integer sequence;

    /**
     * 轮播图名称
     */
    private String slideshowImageName;

    /**
     * 添加人
     */
    private String addUser;

    /**
     * 添加时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @Transient
    private String addUserName;


}
